package javase2.day05.demo02;
/*
如果finally中有return，永远返回finally中结果，应避免这种情况发生
 */
public class finallyReturn {
    public static void main(String[] args) {
        int e = getE();
        System.out.println(e);
    }

    public static int getE(){
        int a=0;
        try {
            return a;
        }catch (Exception e){
            System.out.println(e);
        }finally {
            a=100;
            return a;
        }
    }
}
